package com.zenithsun.common.review.dao;

import java.util.Map;

import com.zenithsun.common.dao.NativeSQLDao;
import com.zenithsun.common.review.model.Review;

public interface ReviewDAO extends NativeSQLDao<Review> {

	/**
	 * 修改信息，非空则修改，空值则不做修改
	 * @param review
	 * @return boolean true成功 false失败
	 * @throws Exception
	 */
	public boolean updateNotBlank(Review review) throws Exception;
	
	/**
	 * 获取审核信息
	 * @param busId
	 * @param busMark
	 * @return
	 * @throws Exception
	 */
	public Review getReviewByBus(String busId, String busMark) throws Exception;
	
	/**
	 * 获取未审核图片条数
	 * @return
	 * @throws Exception
	 */
	public Integer queryPicReview() throws Exception;
	
	/**
	 * 获取未审核新闻条数
	 * @return
	 * @throws Exception
	 */
	public Integer queryNewsReview() throws Exception;	
}
